package com.xm.xmwa1706090.web.controller;

import com.xm.xm.dto.ResultDto;
import com.xm.xm.dto.SearchDto;
import com.xm.xmwa1706090.service.service.QbEquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 杭州新苗网络科技有限公司
 *
 * @author meihf
 * @create 2017/7/12
 * @description
 */
@Controller
@RequestMapping("/equipment")
public class EquipmentController {

    @Autowired
    QbEquipmentService qbEquipmentService;

    /**
     * 扫码开锁-equipment-附近的车辆-方圆一公里
     */
    @RequestMapping("/nearByBikes")
    @ResponseBody
    public ResultDto nearByBikes(@RequestBody SearchDto searchDto){
        return qbEquipmentService.nearByBikes(searchDto);
    }
}
